package com.jt.assistant.adapter

import android.annotation.SuppressLint
import android.view.View
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jt.assistant.R

class DialogListAdapter(mData: MutableList<String>) :
    BaseQuickAdapter<String, BaseViewHolder>(
        R.layout.item_layout_dialog, mData
    ) {

    @SuppressLint("SetTextI18n")
    override fun convert(holder: BaseViewHolder, item: String) {
        val content = holder.getView<TextView>(R.id.tv_content)
        content.text = item
//        tvEntrustDetail.text = "委托书号: ${item.entrustBookNo}\n" +
//                "转运批次号: ${item.transBatches}\n" +
//                "转运单号: ${item.transNo}\n" +
//                "采购单号: ${item.jdOrderNo}\n" +
//                "客户名称: ${item.customerName}\n" +
//                "箱数: ${item.num}    " + "${item.volume}m³    " + "${item.weight}Kg\n" +
//                "委托书提货时间: ${item.entrustDeliverDate}\n" +
//                "起点: ${item.start}    " + "终点: ${item.end}    " +
//                "状态: ${if (item.status == 1) "有效" else "无效"}"
    }


}